<include file="public@header" />
</head>
<body>
<div class="lyear-layout-web">
    <div class="lyear-layout-container">
        <!--页面主要内容-->
        <main class="lyear-layout-content">
          
            <div class="container-fluid">
            
                <div class="row">
                   <div class="col-md-12">
                        <div class="card">
							<ul class="nav nav-tabs">
								<li class="active"><a href="{:url('rbac/index')}">{:lang('ADMIN_RBAC_INDEX')}</a></li>
								<li><a href="{:url('rbac/roleAdd')}">{:lang('ADMIN_RBAC_ROLEADD')}</a></li>
							</ul>
							<div class="card-body">
								<form action="{:url('Rbac/listorders')}" method="post" class="margin-top-20">
									<div class="table-responsive">
	                                    <table class="table table-hover" >
											<thead>
												<tr>
													<th width="40">ID</th>
													<th align="left">{:lang('ROLE_NAME')}</th>
													<th align="left">{:lang('ROLE_DESCRIPTION')}</th>
													<th width="60" align="left">{:lang('STATUS')}</th>
													<th width="220">{:lang('ACTIONS')}</th>
												</tr>
											</thead>
											<tbody>
												<foreach name="roles" item="vo">
												<tr>
													<td>{$vo.id}</td>
													<td>{$vo.name}</td>
													<td>{$vo.remark}</td>
													<td>
														<if condition="$vo['status'] eq 1">
															<span class="label label-success">已启用</span>
														<else />
															<span class="label label-danger">已禁用</span>
														</if>
													</td>
													<td>
														<if condition="$vo['id'] eq 1">
															<span class="btn btn-xs btn-primary disabled">{:lang('ROLE_SETTING')}</span>
															<!-- <a href="javascript:openIframeDialog('{:url('rbac/member',array('id'=>$vo['id']))}','成员管理');">成员管理</a> | -->
															<span class="btn btn-xs btn-primary disabled">{:lang('EDIT')}</span>
															<span class="btn btn-xs btn-danger disabled">{:lang('DELETE')}</span>
														<else />
															<a class="btn btn-xs btn-primary" href="{:url('Rbac/authorize',array('id'=>$vo['id']))}">{:lang('ROLE_SETTING')}</a>
															<!-- <a href="javascript:openIframeDialog('{:url('rbac/member',array('id'=>$vo['id']))}','成员管理');">成员管理</a>| -->
															<a class="btn btn-xs btn-primary" href="{:url('Rbac/roleedit',array('id'=>$vo['id']))}">{:lang('EDIT')}</a>
															<a class="btn btn-xs btn-danger js-ajax-delete" class="" href="{:url('Rbac/roledelete',array('id'=>$vo['id']))}">{:lang('DELETE')}</a>
														</if>
													</td>
												</tr>
												</foreach>
											</tbody>
										</table>
									</div>
								</form>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </main>
    </div>
</div>
<script src="__TMPL__/public/assets/js/admin.js"></script>
</body>
</html>